package com.sline.ThreadMethod;

public class Demo2_CurrentThread {
    public static void main(String[] args) {
        new Thread() {
            public void run() {
                System.out.println(this.getName() + " aaaaa");
            }
        }.start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName() + " bbbbb");
            }
        }).start();

        System.out.println(Thread.currentThread().getName());
    }
}
